<gallery frameColor="0xFFFFFF" frameWidth="15" imagePadding="20" displayTime="8" enableRightClickOpen="true">

<!-- while:$pl = $db->fetch_array($getlist['query']) -->
<image>
   <url>{siteurl}image/my_photo/{pl[attach]}</url>
   <caption><![CDATA[<font size="35">{pl[subject]}</font><br>{run:=TRIM(HTML_Fix($pl[content]))}]]></caption>
   <width>{pl[width]}</width>
   <height>{pl[height]}</height>
</image>
<!-- END -->
<!-- IF($_i==0) -->
<image>
   <url>{siteurl}image/no_photo.gif</url>
   <caption><![CDATA[SYSTN.COM]]></caption>
   <width>238</width>
   <height>382</height>
</image>
<!-- END -->
</gallery>